package com.testdemo.web.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.labmanager.JsonModule.RequestBase;

/**
 * 用户实体类.
 * @author SuperT
 *
 */
public class MyUser extends RequestBase{

    /**
     * 用户名.
     */
	@JsonProperty("username")
    private String username;

    /**
     * 用户密码.
     */
	@JsonProperty("password")
    private String password;
	
	private int labid;
	
	public int getLabid() {
		return labid;
	}

	public void setLabid(int labid) {
		this.labid = labid;
	}


	//@JsonProperty("level")
	private int level;
	
	
	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	

	
	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Override
	public boolean checkData() {
		if(!super.checkData())return false;
		if(username == null || "".equals(username)) return false;
		//if(userPassword == null || "".equals(userPassword)) return false;
		return true;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
}
